package com.jbp.ssm.service.Impl;

import com.jbp.ssm.dao.UserDao;
import com.jbp.ssm.entity.UserEntity;
import com.jbp.ssm.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by david on 2017/6/3.
 *
 * @email davidmaster@163.com
 */
@Service("userService")
public class UserServiceImpl implements UserService {
    @Autowired
    private UserDao userDao;
    @Override
    public List<UserEntity> queryList(Map<String, Object> map) {
        return userDao.query(map);
    }
    @Override
    public Long insert(UserEntity user){
        return userDao.insert(user);
    }
}
